//Key Class Header
////Graham Foster
////Header file for key class for cipher solver

#ifndef KEY_H_
#define KEY_H_

#include <iostream>
#include <fstream>
#include <string>

const int maxKeySize=27; //this is the maximum length of the string for the key

class Key
{
	private:
		char list[maxKeySize]; //the list of characters in the key
		char mean[maxKeySize]; //the list of characters' meaning
		int length; //the length of the key

	public:
		Key(); //constructs default alphabet & empty meaning key
		int subChar(char, char); //put a character substitution in the key
		void printKey(); //print out the key
		int saveKey(char*); //save the key to a file
		int loadKey(char*); //load the key from a file
		char lookupChar(char); //looks up character in the key and returns translated character
};

#endif
